<select  name="map_home" id="map_home" > 
    <?php 
    
     foreach ($home as $i): ?>
    <option  value="<?php echo $i; ?>"><?php echo $i; ?></option>
    <?php endforeach; ?>
</select>
<button onclick="check_home()">
    Выбрать дом
</button>